package com.etung.iot.demo.modles;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("iot_device")
public class DeviceEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String imei;
    @TableField("port_id")
    private Integer portId;
    @TableField("device_id")
    private Integer deviceId;
    private String name;
    private String brand;
    private String model;
    @TableField("bit_max")
    private Integer bitMax;
    @TableField("word_max")
    private Integer wordMax;
    private Integer timeout;
    @TableField("recovery_interval")
    private Integer recoveryInterval;
    @TableField("`interval`")
    private Integer interval;
    @TableField("retry_times")
    private Integer retryTimes;
    private String ip;
    private Integer port;
    private String properties;
}
